package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Role;

import java.util.Map;
import java.util.Set;

public interface RoleDao {
    public Set<Role> findByUserId(int id);
    Page<Role> findPage(String queryString);
    void add(Role role);
    void addRoleAndPermission(Map map);
    void addRoleAndMenu(Map map);
    Role findById(Integer id);
    void edit(Role role);
    void deleteAssociationRoleAndPermission(Integer id);
    void deleteAssociationRoleAndMenu(Integer id);
    Long findAssociationByRoleId(Integer id);
    void deleteById(Integer id);
}
